package com.softeem.hbsmvideo.vo;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)//开启链式编程
public class R {
    private Integer code;
    private String msg;
    private Object data;
    private Long count;
    private boolean success;

    public static R fail(String msg) {
        R r=new R();
        r.code=-1;
        r.msg=msg;
        r.success=false;
        return r;
    }

    public static R ok(String msg) {
        R r=new R();
        r.code=0;
        r.msg=msg;
        r.success=true;
        return r;
    }


}

